package cn.edu.imau.zy.examination.service.impl;

import java.util.List;

import cn.edu.imau.zy.examination.domain.ElPaperQu;
import cn.edu.imau.zy.examination.mapper.ElPaperQuMapper;
import cn.edu.imau.zy.examination.service.IElPaperQuService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;


/**
 * 试卷考题Service业务层处理
 * 
 * @author xsc
 * @date 2021-04-27
 */
@Service
public class ElPaperQuServiceImpl extends ServiceImpl<ElPaperQuMapper, ElPaperQu> implements IElPaperQuService
{
    @Autowired
    private ElPaperQuMapper elPaperQuMapper;

    @Override
    public List<ElPaperQu> queryList(ElPaperQu elPaperQu) {
        LambdaQueryWrapper<ElPaperQu> lqw = Wrappers.lambdaQuery();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    return this.list(lqw);
    }

    @Override
    public  List<ElPaperQu> paperQuList(@Param("id") String id) {
        return elPaperQuMapper.paperQuList(id);
    }
}
